package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.SpecialOffer;

import java.util.List;

public interface SpecialOfferDao {

    int insert(SpecialOffer specialOffer);

    List<SpecialOffer> selectAllByDel(int del);

    int updateByPrimaryKey(SpecialOffer specialOffer);

    SpecialOffer getSpecialOfferById(String specialOfferId);

    int updateDel(String specialOfferId);

    int updateStatus(String specialOfferId, Integer status);

    int batchDeleteById(String[] id);

    List<SpecialOffer> selectAllByPage(Integer start, Integer size, Integer type);

    Integer selectAllByPageAmount(Integer type);

    List<SpecialOffer> getSpecialOffer();
}
